package org.eiahe.hr.salary.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.ehe.common.core.validate.AddGroup;
import org.ehe.common.core.validate.EditGroup;
import org.ehe.common.core.xss.Xss;
import org.ehe.common.mybatis.core.domain.BaseEntity;
import org.eiahe.hr.salary.domain.SocialInsurancePayment;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 社保缴纳业务对象 hr_salary_social_insurance
 *
 * @author zhangnn
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SocialInsurancePayment.class, reverseConvertGenerate = false)
public class SocialInsurancePaymentBo extends BaseEntity {

    /**
     * 社保缴纳ID
     */
    @NotNull(message = "社保缴纳ID不能为空", groups = { EditGroup.class })
    private Long paymentId;

    /**
     * 租户ID
     */
    private String tenantId;

    /**
     * 工号
     */
    @NotBlank(message = "工号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String employeeNo;

    /**
     * 员工姓名
     */
    @NotBlank(message = "员工姓名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String employeeName;

    /**
     * 身份证号
     */
    private String idCard;

    /**
     * 部门
     */
    private String department;

    /**
     * 年月(yyyyMM格式)
     */
    @NotBlank(message = "年月不能为空", groups = { AddGroup.class, EditGroup.class })
    private String yearMonth;

    /**
     * 养老基数
     */
    private BigDecimal pensionBase;

    /**
     * 养老个人比例
     */
    private BigDecimal pensionPersonalRate;

    /**
     * 养老个人金额
     */
    private BigDecimal pensionPersonalAmount;

    /**
     * 养老公司比例
     */
    private BigDecimal pensionCompanyRate;

    /**
     * 养老公司金额
     */
    private BigDecimal pensionCompanyAmount;

    /**
     * 医疗基数
     */
    private BigDecimal medicalBase;

    /**
     * 医疗个人比例
     */
    private BigDecimal medicalPersonalRate;

    /**
     * 医疗个人金额
     */
    private BigDecimal medicalPersonalAmount;

    /**
     * 医疗公司比例
     */
    private BigDecimal medicalCompanyRate;

    /**
     * 医疗公司金额
     */
    private BigDecimal medicalCompanyAmount;

    /**
     * 失业基数
     */
    private BigDecimal unemploymentBase;

    /**
     * 失业个人比例
     */
    private BigDecimal unemploymentPersonalRate;

    /**
     * 失业个人金额
     */
    private BigDecimal unemploymentPersonalAmount;

    /**
     * 失业公司比例
     */
    private BigDecimal unemploymentCompanyRate;

    /**
     * 失业公司金额
     */
    private BigDecimal unemploymentCompanyAmount;

    /**
     * 工伤基数
     */
    private BigDecimal injuryBase;

    /**
     * 工伤个人比例
     */
    private BigDecimal injuryPersonalRate;

    /**
     * 工伤个人金额
     */
    private BigDecimal injuryPersonalAmount;

    /**
     * 工伤公司比例
     */
    private BigDecimal injuryCompanyRate;

    /**
     * 工伤公司金额
     */
    private BigDecimal injuryCompanyAmount;

    /**
     * 生育基数
     */
    private BigDecimal maternityBase;

    /**
     * 生育个人比例
     */
    private BigDecimal maternityPersonalRate;

    /**
     * 生育个人金额
     */
    private BigDecimal maternityPersonalAmount;

    /**
     * 生育公司比例
     */
    private BigDecimal maternityCompanyRate;

    /**
     * 生育公司金额
     */
    private BigDecimal maternityCompanyAmount;

    /**
     * 大额医疗基数
     */
    private BigDecimal majorMedicalBase;

    /**
     * 大额医疗个人金额
     */
    private BigDecimal majorMedicalPersonalAmount;

    /**
     * 大额医疗公司金额
     */
    private BigDecimal majorMedicalCompanyAmount;

    /**
     * 社保个人合计
     */
    private BigDecimal socialPersonalTotal;

    /**
     * 社保公司合计
     */
    private BigDecimal socialCompanyTotal;

    /**
     * 状态(0正常 1封存)
     */
    private String status;

    /**
     * 缴纳状态(0未缴纳 1已缴纳)
     */
    private String paymentStatus;

    /**
     * 缴纳时间
     */
    private Date paymentTime;

    /**
     * 备注
     */
    @Xss(message = "备注不能包含脚本字符")
    private String remark;
}